<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<TITLE>
Context (Soy Complete)
</TITLE>


<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="Context (Soy Complete)";
    }
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">
<HR>


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/CheckEscapingSanityVisitor.html" title="class in com.google.template.soy.parsepasses.contextautoesc"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.AttributeEndDelimiter.html" title="enum in com.google.template.soy.parsepasses.contextautoesc"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../../../index.html?com/google/template/soy/parsepasses/contextautoesc/Context.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="Context.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.google.template.soy.parsepasses.contextautoesc</FONT>
<BR>
Class Context</H2>
<PRE>
<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
  <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>com.google.template.soy.parsepasses.contextautoesc.Context</B>
</PRE>
<HR>
<DL>
<DT><PRE>public final class <B>Context</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL>
</PRE>

<P>
Encapsulates the context in which a Soy node appears.
 This helps us distinguish Soy nodes that can only be preceded by fully formed HTML tags and text
 chunks from ones that appear inside JavaScript, from ones that appear inside URIs, etc.

 <p>
 This is an immutable bit-packable struct that contains a number of enums.
 These enums have their own nullish values like <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.ElementType.html#NONE"><CODE>Context.ElementType.NONE</CODE></A> so should always
 be non-null.

 <p>
 The contextual autoescape rewriter propagates contexts so that it can infer an appropriate
 <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/EscapingMode.html" title="enum in com.google.template.soy.parsepasses.contextautoesc"><CODE>escaping function</CODE></A> for each <code>{print ...}</code> command.

 <p>
 To make sure it can correctly identify a unique escape convention for all paths to a particular
 print command, it may clone a template for each context in which it is called, using the
 <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#packedBits()"><CODE>bitpacked</CODE></A> form of the context to generate a unique template name.
<P>

<P>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->

<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.AttributeEndDelimiter.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.AttributeEndDelimiter</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Describes the content that will end the current HTML attribute.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.AttributeType.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.AttributeType</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Describes the content of an HTML attribute.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.ElementType.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.ElementType</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A type of HTML element.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.JsFollowingSlash.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.JsFollowingSlash</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Describes what a slash (<code>/</code>) means when parsing JavaScript source code.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.State.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.State</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A state in the parse of an HTML document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.UriPart.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.UriPart</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Describes the part of a URI reference that the context point is in.</TD>
</TR>
</TABLE>
&nbsp;<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.AttributeType.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.AttributeType</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#attrType">attrType</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Describes the attribute whose value the context point is in.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#CSS">CSS</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inside a <code>&lt;style&gt;</code> element body.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.AttributeEndDelimiter.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.AttributeEndDelimiter</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#delimType">delimType</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Describes the quoting convention for the attribute value that the context point is in.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.ElementType.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.ElementType</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#elType">elType</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Describes the innermost element that the text preceding the context point is in.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#ERROR">ERROR</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A special state transitioned to if the CSS/HTML/JS parser cannot compute the next context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#HTML_BEFORE_TAG_NAME">HTML_BEFORE_TAG_NAME</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Before an HTML tag name.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#HTML_COMMENT">HTML_COMMENT</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inside an HTML comment, i.e.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#HTML_PCDATA">HTML_PCDATA</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The normal context for HTML where a less than opens a tag and an ampersand starts an HTML
 entity.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#HTML_TAG_NAME">HTML_TAG_NAME</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inside an HTML tag name.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#JS">JS</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inside a <code>&lt;script&gt;</code> element body.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.JsFollowingSlash.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.JsFollowingSlash</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#slashType">slashType</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines what we will do with a slash token <code>/</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.State.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.State</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#state">state</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The state the text preceding the context point describes.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#TEXT">TEXT</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Plain text, with no escaping.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#URI_START">URI_START</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start of a URI.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.UriPart.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.UriPart</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#uriPart">uriPart</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines how we encode interpolations in URI attributes and CSS <code>uri(...)</code>.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#Context(com.google.template.soy.parsepasses.contextautoesc.Context.State)">Context</A></B>(<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.State.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.State</A>&nbsp;state)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A context in the given state outside any element, attribute, or Javascript content.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#Context(com.google.template.soy.parsepasses.contextautoesc.Context.State, com.google.template.soy.parsepasses.contextautoesc.Context.ElementType, com.google.template.soy.parsepasses.contextautoesc.Context.AttributeType, com.google.template.soy.parsepasses.contextautoesc.Context.AttributeEndDelimiter, com.google.template.soy.parsepasses.contextautoesc.Context.JsFollowingSlash, com.google.template.soy.parsepasses.contextautoesc.Context.UriPart)">Context</A></B>(<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.State.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.State</A>&nbsp;state,
        <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.ElementType.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.ElementType</A>&nbsp;elType,
        <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.AttributeType.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.AttributeType</A>&nbsp;attrType,
        <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.AttributeEndDelimiter.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.AttributeEndDelimiter</A>&nbsp;delimType,
        <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.JsFollowingSlash.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.JsFollowingSlash</A>&nbsp;slashType,
        <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.UriPart.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.UriPart</A>&nbsp;uriPart)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#derive(com.google.template.soy.parsepasses.contextautoesc.Context.AttributeEndDelimiter)">derive</A></B>(<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.AttributeEndDelimiter.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.AttributeEndDelimiter</A>&nbsp;delimType)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a context that differs only in the attribute end delimiter.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#derive(com.google.template.soy.parsepasses.contextautoesc.Context.AttributeType)">derive</A></B>(<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.AttributeType.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.AttributeType</A>&nbsp;attrType)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a context that differs only in the attribute type.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#derive(com.google.template.soy.parsepasses.contextautoesc.Context.ElementType)">derive</A></B>(<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.ElementType.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.ElementType</A>&nbsp;elType)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a context that differs only in the element type.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#derive(com.google.template.soy.parsepasses.contextautoesc.Context.JsFollowingSlash)">derive</A></B>(<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.JsFollowingSlash.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.JsFollowingSlash</A>&nbsp;slashType)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a context that differs only in the following slash.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#derive(com.google.template.soy.parsepasses.contextautoesc.Context.State)">derive</A></B>(<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.State.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.State</A>&nbsp;state)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a context that differs only in the state.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#derive(com.google.template.soy.parsepasses.contextautoesc.Context.UriPart)">derive</A></B>(<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.UriPart.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.UriPart</A>&nbsp;uriPart)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a context that differs only in the uri part.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#equals(java.lang.Object)">equals</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;o)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#getContextAfterEscaping(com.google.template.soy.parsepasses.contextautoesc.EscapingMode)">getContextAfterEscaping</A></B>(<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/EscapingMode.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">EscapingMode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The context reached after escaping content using the given mode from this context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/EscapingMode.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">EscapingMode</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#getEscapingModes()">getEscapingModes</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the escaping mode appropriate for dynamic content inserted in this context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#getLikelyEndContextMismatchCause(com.google.template.soy.data.SanitizedContent.ContentKind, com.google.template.soy.parsepasses.contextautoesc.Context)">getLikelyEndContextMismatchCause</A></B>(<A HREF="../../../../../../com/google/template/soy/data/SanitizedContent.ContentKind.html" title="enum in com.google.template.soy.data">SanitizedContent.ContentKind</A>&nbsp;contentKind,
                                 <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A>&nbsp;context)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a plausible human-readable description of a context mismatch;

 This assumes that the provided context is an invalid end context for the particular content
 kind.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#getStartContextForContentKind(com.google.template.soy.data.SanitizedContent.ContentKind)">getStartContextForContentKind</A></B>(<A HREF="../../../../../../com/google/template/soy/data/SanitizedContent.ContentKind.html" title="enum in com.google.template.soy.data">SanitizedContent.ContentKind</A>&nbsp;contentKind)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the autoescacpe <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc"><CODE>Context</CODE></A> that produces sanitized content of the given
 <A HREF="../../../../../../com/google/template/soy/data/SanitizedContent.ContentKind.html" title="enum in com.google.template.soy.data"><CODE>SanitizedContent.ContentKind</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#hashCode()">hashCode</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#isCompatibleWith(com.google.template.soy.parsepasses.contextautoesc.EscapingMode)">isCompatibleWith</A></B>(<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/EscapingMode.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">EscapingMode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;True if the given escaping mode could make sense in this context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#isErrorContext()">isErrorContext</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;True if this context is in the <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.State.html#ERROR"><CODE>error</CODE></A> state.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#isValidEndContextForContentKind(com.google.template.soy.data.SanitizedContent.ContentKind, com.google.template.soy.parsepasses.contextautoesc.Context)">isValidEndContextForContentKind</A></B>(<A HREF="../../../../../../com/google/template/soy/data/SanitizedContent.ContentKind.html" title="enum in com.google.template.soy.data">SanitizedContent.ContentKind</A>&nbsp;contentKind,
                                <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A>&nbsp;context)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines whether a particular context is valid for the end of a block of a particular
 content kind.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#isValidStartContextForContentKind(com.google.template.soy.data.SanitizedContent.ContentKind, com.google.template.soy.parsepasses.contextautoesc.Context)">isValidStartContextForContentKind</A></B>(<A HREF="../../../../../../com/google/template/soy/data/SanitizedContent.ContentKind.html" title="enum in com.google.template.soy.data">SanitizedContent.ContentKind</A>&nbsp;contentKind,
                                  <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A>&nbsp;context)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines whether a particular context is valid at the start of a block of a particular
 content kind.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#packedBits()">packedBits</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An integral form that uniquely identifies this context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#toString()">toString</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#union(com.google.template.soy.parsepasses.contextautoesc.Context, com.google.template.soy.parsepasses.contextautoesc.Context)">union</A></B>(<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A>&nbsp;a,
      <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A>&nbsp;b)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A context which is consistent with both contexts.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="state"><!-- --></A><H3>
state</H3>
<PRE>
public final <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.State.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.State</A> <B>state</B></PRE>
<DL>
<DD>The state the text preceding the context point describes.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="elType"><!-- --></A><H3>
elType</H3>
<PRE>
public final <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.ElementType.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.ElementType</A> <B>elType</B></PRE>
<DL>
<DD>Describes the innermost element that the text preceding the context point is in.
 An element is considered entered once its name has been seen in the start tag and is considered
 closed once the name of its end tag is seen.
 E.g. the open point is marked with O below and C marks the close point.
 <xmp>
 <b id="boldly-going">Hello, World!</b >
   ^                                  ^
   O                                  C
 </xmp>
 Outside an element, or in PCDATA text, this will be the nullish value <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.ElementType.html#NONE"><CODE>Context.ElementType.NONE</CODE></A>.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="attrType"><!-- --></A><H3>
attrType</H3>
<PRE>
public final <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.AttributeType.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.AttributeType</A> <B>attrType</B></PRE>
<DL>
<DD>Describes the attribute whose value the context point is in.
 Outside an attribute value, this will be the nullish value <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.AttributeType.html#NONE"><CODE>Context.AttributeType.NONE</CODE></A>.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="delimType"><!-- --></A><H3>
delimType</H3>
<PRE>
public final <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.AttributeEndDelimiter.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.AttributeEndDelimiter</A> <B>delimType</B></PRE>
<DL>
<DD>Describes the quoting convention for the attribute value that the context point is in.
 Outside an attribute value, this will be the nullish value <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.AttributeEndDelimiter.html#NONE"><CODE>Context.AttributeEndDelimiter.NONE</CODE></A>.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="slashType"><!-- --></A><H3>
slashType</H3>
<PRE>
public final <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.JsFollowingSlash.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.JsFollowingSlash</A> <B>slashType</B></PRE>
<DL>
<DD>Determines what we will do with a slash token <code>/</code>.  This is irrelevant outside JavaScript
 contexts, but inside JavaScript, it helps us distinguish the contexts of <code>{$bar}</code> in
 <code>"foo".replace(/{$bar}/i)</code> and <code>x/{$bar}/i</code>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="uriPart"><!-- --></A><H3>
uriPart</H3>
<PRE>
public final <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.UriPart.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.UriPart</A> <B>uriPart</B></PRE>
<DL>
<DD>Determines how we encode interpolations in URI attributes and CSS <code>uri(...)</code>.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="HTML_PCDATA"><!-- --></A><H3>
HTML_PCDATA</H3>
<PRE>
public static final <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A> <B>HTML_PCDATA</B></PRE>
<DL>
<DD>The normal context for HTML where a less than opens a tag and an ampersand starts an HTML
 entity.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="HTML_COMMENT"><!-- --></A><H3>
HTML_COMMENT</H3>
<PRE>
public static final <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A> <B>HTML_COMMENT</B></PRE>
<DL>
<DD>Inside an HTML comment, i.e. between the <code>&lt;!--</code> and <code>--&gt;</code>.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="HTML_BEFORE_TAG_NAME"><!-- --></A><H3>
HTML_BEFORE_TAG_NAME</H3>
<PRE>
public static final <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A> <B>HTML_BEFORE_TAG_NAME</B></PRE>
<DL>
<DD>Before an HTML tag name.
 E.g. after the less-than sign in <code>&lt;H{$headerLevel}</code>.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="HTML_TAG_NAME"><!-- --></A><H3>
HTML_TAG_NAME</H3>
<PRE>
public static final <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A> <B>HTML_TAG_NAME</B></PRE>
<DL>
<DD>Inside an HTML tag name.  E.g. after the less-than sign or the letter 'H' in
 <code>&lt;H{$headerLevel}</code>.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CSS"><!-- --></A><H3>
CSS</H3>
<PRE>
public static final <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A> <B>CSS</B></PRE>
<DL>
<DD>Inside a <code>&lt;style&gt;</code> element body.  Note that this context is <b>not</b> used for
 <code>style="..."</code> attribute values since that must have the <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#elType"><CODE>elType</CODE></A> set so that we
 can progress to the appropriate element context after the end of the style attribute in
 <code>&lt;textarea style="..."&gt;...&lt;/textarea&gt;</code>.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="JS"><!-- --></A><H3>
JS</H3>
<PRE>
public static final <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A> <B>JS</B></PRE>
<DL>
<DD>Inside a <code>&lt;script&gt;</code> element body.  The same caveat applies here as to <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#CSS"><CODE>CSS</CODE></A>.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="TEXT"><!-- --></A><H3>
TEXT</H3>
<PRE>
public static final <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A> <B>TEXT</B></PRE>
<DL>
<DD>Plain text, with no escaping.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="URI_START"><!-- --></A><H3>
URI_START</H3>
<PRE>
public static final <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A> <B>URI_START</B></PRE>
<DL>
<DD>Start of a URI.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="ERROR"><!-- --></A><H3>
ERROR</H3>
<PRE>
public static final <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A> <B>ERROR</B></PRE>
<DL>
<DD>A special state transitioned to if the CSS/HTML/JS parser cannot compute the next context.
<P>
<DL>
</DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="Context(com.google.template.soy.parsepasses.contextautoesc.Context.State, com.google.template.soy.parsepasses.contextautoesc.Context.ElementType, com.google.template.soy.parsepasses.contextautoesc.Context.AttributeType, com.google.template.soy.parsepasses.contextautoesc.Context.AttributeEndDelimiter, com.google.template.soy.parsepasses.contextautoesc.Context.JsFollowingSlash, com.google.template.soy.parsepasses.contextautoesc.Context.UriPart)"><!-- --></A><H3>
Context</H3>
<PRE>
public <B>Context</B>(<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.State.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.State</A>&nbsp;state,
               <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.ElementType.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.ElementType</A>&nbsp;elType,
               <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.AttributeType.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.AttributeType</A>&nbsp;attrType,
               <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.AttributeEndDelimiter.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.AttributeEndDelimiter</A>&nbsp;delimType,
               <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.JsFollowingSlash.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.JsFollowingSlash</A>&nbsp;slashType,
               <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.UriPart.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.UriPart</A>&nbsp;uriPart)</PRE>
<DL>
</DL>
<HR>

<A NAME="Context(com.google.template.soy.parsepasses.contextautoesc.Context.State)"><!-- --></A><H3>
Context</H3>
<PRE>
public <B>Context</B>(<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.State.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.State</A>&nbsp;state)</PRE>
<DL>
<DD>A context in the given state outside any element, attribute, or Javascript content.
<P>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="derive(com.google.template.soy.parsepasses.contextautoesc.Context.State)"><!-- --></A><H3>
derive</H3>
<PRE>
public <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A> <B>derive</B>(<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.State.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.State</A>&nbsp;state)</PRE>
<DL>
<DD>Returns a context that differs only in the state.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="derive(com.google.template.soy.parsepasses.contextautoesc.Context.ElementType)"><!-- --></A><H3>
derive</H3>
<PRE>
public <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A> <B>derive</B>(<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.ElementType.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.ElementType</A>&nbsp;elType)</PRE>
<DL>
<DD>Returns a context that differs only in the element type.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="derive(com.google.template.soy.parsepasses.contextautoesc.Context.AttributeType)"><!-- --></A><H3>
derive</H3>
<PRE>
public <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A> <B>derive</B>(<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.AttributeType.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.AttributeType</A>&nbsp;attrType)</PRE>
<DL>
<DD>Returns a context that differs only in the attribute type.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="derive(com.google.template.soy.parsepasses.contextautoesc.Context.AttributeEndDelimiter)"><!-- --></A><H3>
derive</H3>
<PRE>
public <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A> <B>derive</B>(<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.AttributeEndDelimiter.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.AttributeEndDelimiter</A>&nbsp;delimType)</PRE>
<DL>
<DD>Returns a context that differs only in the attribute end delimiter.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="derive(com.google.template.soy.parsepasses.contextautoesc.Context.JsFollowingSlash)"><!-- --></A><H3>
derive</H3>
<PRE>
public <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A> <B>derive</B>(<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.JsFollowingSlash.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.JsFollowingSlash</A>&nbsp;slashType)</PRE>
<DL>
<DD>Returns a context that differs only in the following slash.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="derive(com.google.template.soy.parsepasses.contextautoesc.Context.UriPart)"><!-- --></A><H3>
derive</H3>
<PRE>
public <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A> <B>derive</B>(<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.UriPart.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">Context.UriPart</A>&nbsp;uriPart)</PRE>
<DL>
<DD>Returns a context that differs only in the uri part.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getContextAfterEscaping(com.google.template.soy.parsepasses.contextautoesc.EscapingMode)"><!-- --></A><H3>
getContextAfterEscaping</H3>
<PRE>
public <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A> <B>getContextAfterEscaping</B>(<FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT>
                                       <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/EscapingMode.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">EscapingMode</A>&nbsp;mode)</PRE>
<DL>
<DD>The context reached after escaping content using the given mode from this context.
 This makes an optimistic assumption that the escaped string is not empty, but in practice this
 makes no difference except to minor differences such as that between <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.UriPart.html#START"><CODE>Context.UriPart.START</CODE></A> and
 <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.UriPart.html#PRE_QUERY"><CODE>Context.UriPart.PRE_QUERY</CODE></A>.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getEscapingModes()"><!-- --></A><H3>
getEscapingModes</H3>
<PRE>
<FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A>
</FONT>public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/EscapingMode.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">EscapingMode</A>&gt; <B>getEscapingModes</B>()</PRE>
<DL>
<DD>Returns the escaping mode appropriate for dynamic content inserted in this context.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>Empty if there is no appropriate escaping convention to use,
     e.g. for comments which do not have escaping conventions.</DL>
</DD>
</DL>
<HR>

<A NAME="isCompatibleWith(com.google.template.soy.parsepasses.contextautoesc.EscapingMode)"><!-- --></A><H3>
isCompatibleWith</H3>
<PRE>
public boolean <B>isCompatibleWith</B>(<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/EscapingMode.html" title="enum in com.google.template.soy.parsepasses.contextautoesc">EscapingMode</A>&nbsp;mode)</PRE>
<DL>
<DD>True if the given escaping mode could make sense in this context.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="isErrorContext()"><!-- --></A><H3>
isErrorContext</H3>
<PRE>
public boolean <B>isErrorContext</B>()</PRE>
<DL>
<DD>True if this context is in the <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.State.html#ERROR"><CODE>error</CODE></A> state.
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#ERROR"><CODE>ERROR</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
equals</H3>
<PRE>
public boolean <B>equals</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;o)</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="hashCode()"><!-- --></A><H3>
hashCode</H3>
<PRE>
public int <B>hashCode</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="packedBits()"><!-- --></A><H3>
packedBits</H3>
<PRE>
public int <B>packedBits</B>()</PRE>
<DL>
<DD>An integral form that uniquely identifies this context.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="union(com.google.template.soy.parsepasses.contextautoesc.Context, com.google.template.soy.parsepasses.contextautoesc.Context)"><!-- --></A><H3>
union</H3>
<PRE>
public static <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A> <B>union</B>(<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A>&nbsp;a,
                            <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A>&nbsp;b)</PRE>
<DL>
<DD>A context which is consistent with both contexts.
 This should be used when multiple execution paths join, such as the path through the
 then-clause of an <code>{if}</code> command and the path through the else-clause.
<P>
<DD><DL>

<DT><B>Returns:</B><DD><A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html#ERROR"><CODE>ERROR</CODE></A> when there is no such context consistent with both.</DL>
</DD>
</DL>
<HR>

<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getStartContextForContentKind(com.google.template.soy.data.SanitizedContent.ContentKind)"><!-- --></A><H3>
getStartContextForContentKind</H3>
<PRE>
public static <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A> <B>getStartContextForContentKind</B>(<A HREF="../../../../../../com/google/template/soy/data/SanitizedContent.ContentKind.html" title="enum in com.google.template.soy.data">SanitizedContent.ContentKind</A>&nbsp;contentKind)</PRE>
<DL>
<DD>Returns the autoescacpe <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc"><CODE>Context</CODE></A> that produces sanitized content of the given
 <A HREF="../../../../../../com/google/template/soy/data/SanitizedContent.ContentKind.html" title="enum in com.google.template.soy.data"><CODE>SanitizedContent.ContentKind</CODE></A>.

 <p>
 Given a <A HREF="../../../../../../com/google/template/soy/data/SanitizedContent.ContentKind.html" title="enum in com.google.template.soy.data"><CODE>SanitizedContent.ContentKind</CODE></A>, returns the corresponding <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc"><CODE>Context</CODE></A> such that contextual
 autoescaping of a block of Soy code with that context as the start context results in a value
 that adheres to the contract of <A HREF="../../../../../../com/google/template/soy/data/SanitizedContent.html" title="class in com.google.template.soy.data"><CODE>SanitizedContent</CODE></A> of the
 given kind.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="isValidStartContextForContentKind(com.google.template.soy.data.SanitizedContent.ContentKind, com.google.template.soy.parsepasses.contextautoesc.Context)"><!-- --></A><H3>
isValidStartContextForContentKind</H3>
<PRE>
public static boolean <B>isValidStartContextForContentKind</B>(<A HREF="../../../../../../com/google/template/soy/data/SanitizedContent.ContentKind.html" title="enum in com.google.template.soy.data">SanitizedContent.ContentKind</A>&nbsp;contentKind,
                                                        <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A>&nbsp;context)</PRE>
<DL>
<DD>Determines whether a particular context is valid at the start of a block of a particular
 content kind.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="isValidEndContextForContentKind(com.google.template.soy.data.SanitizedContent.ContentKind, com.google.template.soy.parsepasses.contextautoesc.Context)"><!-- --></A><H3>
isValidEndContextForContentKind</H3>
<PRE>
public static boolean <B>isValidEndContextForContentKind</B>(<A HREF="../../../../../../com/google/template/soy/data/SanitizedContent.ContentKind.html" title="enum in com.google.template.soy.data">SanitizedContent.ContentKind</A>&nbsp;contentKind,
                                                      <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A>&nbsp;context)</PRE>
<DL>
<DD>Determines whether a particular context is valid for the end of a block of a particular
 content kind.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getLikelyEndContextMismatchCause(com.google.template.soy.data.SanitizedContent.ContentKind, com.google.template.soy.parsepasses.contextautoesc.Context)"><!-- --></A><H3>
getLikelyEndContextMismatchCause</H3>
<PRE>
public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getLikelyEndContextMismatchCause</B>(<A HREF="../../../../../../com/google/template/soy/data/SanitizedContent.ContentKind.html" title="enum in com.google.template.soy.data">SanitizedContent.ContentKind</A>&nbsp;contentKind,
                                                      <A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.html" title="class in com.google.template.soy.parsepasses.contextautoesc">Context</A>&nbsp;context)</PRE>
<DL>
<DD>Returns a plausible human-readable description of a context mismatch;

 This assumes that the provided context is an invalid end context for the particular content
 kind.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/CheckEscapingSanityVisitor.html" title="class in com.google.template.soy.parsepasses.contextautoesc"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../../../com/google/template/soy/parsepasses/contextautoesc/Context.AttributeEndDelimiter.html" title="enum in com.google.template.soy.parsepasses.contextautoesc"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../../../index.html?com/google/template/soy/parsepasses/contextautoesc/Context.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="Context.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

        
          <div id="footer">
            <div id="footerlogo" style="float:left">
              <img src="http://www.google.com/images/art.gif"
                   alt="Google colored balls">
            </div>
            <div id="copyright" style="float:left">
              <p>
                &copy; 2009 Google -
                <a href="http://www.google.com/privacy.html">Privacy Policy</a> -
                <a href="http://www.google.com/terms_of_service.html">Terms and Conditions</a> -
                <a href="http://www.google.com/about.html">About Google</a>
              </p>
            </div>
          </div>
        
      
</BODY>
</HTML>
